<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-indexPicture-edit" th:object="${indexPicture}">
            <input id="pictureId" name="pictureId" th:field="*{pictureId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">图片地址：</label>
				<div class="col-sm-8">
					<input id="pictureUrl" name="pictureUrl" th:field="*{pictureUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">图片名称：</label>
				<div class="col-sm-8">
					<input id="pictureName" name="pictureName" th:field="*{pictureName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">图片顺序：</label>
				<div class="col-sm-8">
					<input id="pictureSort" name="pictureSort" th:field="*{pictureSort}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/indexPicture";
		$("#form-indexPicture-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-indexPicture-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
